package com.xpu.pms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.Data;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author 徐立彬
 * @date 2019-11-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "pms_base_room")
public class BaseRoomEntity {
    private Long id;
    private String roomNumber;
    private BigDecimal roomArea;
    private Short roomFloor;
    private Short roomDirection;
    private Short roomType;
    private Long buildingID;
    private String buildingIDList;
    //private Long unitID;
    private Long ownerID;
    //告诉MybatisPlus,在生成SQL语句时,这俩字段属于外表,不要生成
    @TableField(exist = false)
    private String ownerName;
    @TableField(exist = false)
    private String buildingName;
}